import request from '../utils/request'


// 用户注册接口
export const regUser = (data) => {
    return request({
        url: '/user/reg',
        method: 'POST',
        data
    })
}


// 用户登录接口
export const login = (data) => {
    return request({
        url: '/user/login',
        method: 'POST',
        data
    })
}



// 用户退出接口
export const logout = () => {
    return request({
        url: '/admin/user/logout',
        method: 'POST',
    })
}



// 用户信息接口
export const getUserInfo = () => {
    return request({
        url: '/admin/user/info',
        method: 'GET',
    })
}